;
(function () {
	$(function() {
    	 
        var hash=location.hash;
        hash=hash.substr(1);
        var rt='http://cs.nksoft.cn/index.php/api/';
        $.ajax({
            type:'Get',
            url: rt + 'teacher/detail/#'+hash,
            dataType:'json',
            success:function (response) {
               var data=response.data;
               var html = template('td', data);
               document.getElementById('container').innerHTML = html;
               var flag=data.class_dlist;
                for(var i=0;i<flag.length;i++){
                    console.log(flag[i].is_hot);
                    if(flag[i].is_hot==0){
                        $(".amount").removeClass("fever")
                    }
                }
                
            }
        });



	})
})();